import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/basic_configuration_user_page_list_entity.g.dart';

//人员列表分页
@JsonSerializable()
class BasicConfigurationUserPageListEntity extends ChoiceBean {
	BasicConfigurationUserPageListEntity();

	factory BasicConfigurationUserPageListEntity.fromJson(Map<String, dynamic> json) => $BasicConfigurationUserPageListEntityFromJson(json);
	String? academicDegree;
	int? allocation;
	String? areaCode;
	String? avatar;
	String? birthday;
	int? branchPersonInCharge;
	String? certificate;
	String? certificateNum;
	int? certificateRemind;
	String? certificateUrl;
	int? checkId;
	int? chemistry;
	String? companyCode;
	String? createBy;
	String? createDate;
	String? deleted;
	int? departManager;
	String? departmentId;
	String? departmentName;
	String? description;
	String? documentUrl;
	String? education;
	String? email;
	String? endTime;
	String? faceUrl;
	String? firstTime;
	String? formId;
	String? frontOfIdCardUrl;
	String? id;
	String? idNo;
	int? isSystem;
	int? isViewAll;
	String? jobNumber;
	String? lastLoginTime;
	int? mainPersonInCharge;
	String? mobile;
	String? nation;
	String? nickname;
	String? otherUid;
	String? passwordCopy;
	String? personDictId;
	String? positionName;
	String? professionalName;
	String? reverseOfIdCard;
	BasicConfigurationUserPageListRoleIds? roleIds;
	int? safetyEngineer;
	int? samplingAnalysis;
	String? school;
	int? sex;
	String? sexName;
	String? sign;
	String? signatureUrl;
	int? specialOperations;
	String? specialWorks;
	List<dynamic>? specialWorksArray;
	int? specialitySafe;
	String? starTime;
	int? status;
	int? taskCount;
	int? technicalPersonnel;
	String? titleName;
	int? type;
	String? unitName;
	String? updateBy;
	String? updateDate;
	String? url;
	String? userType;
	String? username;
	List<dynamic>? workRoleId;
	String? workRoleName;

	Map<String, dynamic> toJson() => $BasicConfigurationUserPageListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}


  @override
  String getId() {
    return id ?? '';
  }

  @override
  String getShowName() {
    return nickname ?? '';
  }

}

@JsonSerializable()
class BasicConfigurationUserPageListRoleIds {


	BasicConfigurationUserPageListRoleIds();

	factory BasicConfigurationUserPageListRoleIds.fromJson(Map<String, dynamic> json) => $BasicConfigurationUserPageListRoleIdsFromJson(json);

	Map<String, dynamic> toJson() => $BasicConfigurationUserPageListRoleIdsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
